﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gl_mes.DAL.MesDB
{
    [Serializable]
    [Table("reality_upph")]
    public class RealityUpph
    {
        /// <summary>
		/// ID，自增长
		/// </summary>
		[Column("id"), Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        [Column("fill_date")]
        public DateTime FillDate { get; set; }

        /// <summary>
        /// 生产线ID
        /// </summary>
        [Column("prod_line_id")]
        public int ProdLineID { get; set; }


        /// <summary>
        /// 实际产能
        /// </summary>
        [Column("upph")]
        public decimal? Upph { get; set; }

        /// <summary>
        /// 生产线名称
        /// </summary>
        [NotMapped]
        public string ProdLineName { get; set; }

    }
}
